<include file="public/head"/>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<include file="public/scripts"/>

<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li ><a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/index')}">规则列表</a></li>
        <li class="active"><a href="">编辑规则</a></li>
    </ul>
    <form action="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/edit_action')}" method="post" class=" form-horizontal  js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <input type="hidden" name="id" value="{$info.id}">
                    <tr>
                        <th>填写url:</th>
                        <td>
                            <input type="text" id="url" class="form-control" name="url" value="{$info.url}" placeholder="*代表所有地址" width="200">
                            <p class="help-block">例：模块/控制器/方法 admin/user/index</p>
                        </td>
                    </tr>
                    <tr>
                        <th>规则：</th>
                        <td><input type="text" id="gz" class="form-control" name="rules" value="{$info.rules}" placeholder="请输入正则" width="200"></td>
                    </tr>
                    <tr>
                        <th>替换成的内容：</th>
                        <td><input type="text" class="form-control" name="content" value="{$info.content}" placeholder="" width="200"></td>
                    </tr>

                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
                        <a class="btn btn-default" href="javascript:history.back(-1)">{:lang('BACK')}</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="__STATIC__/js/admin.js"></script>

<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
</body>
</html>
